package com.lxy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by Enzo Cotter on 2022/9/15.
 */
//合同信息
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
public class Contract {
    private int cid;//
    private int chid;//关联房屋id
    private int clid;//关联租户id
    private int cpayType;//付款方式：1.月付2.半年付3。年付
    private String cnum;//合同号
    private Date ctime;//合同签订时间
    private Date cstartTime;//合同生效时间
    private Date cendTime;//合同失效时间
    private double ctotalMoney;//合同总金额
    private House house;
    private Lessee lessee;

    @Override
    public String toString() {
        return "Contract{" +
                "cid=" + cid +
                ", chid=" + chid +
                ", clid=" + clid +
                ", cpayType=" + cpayType +
                ", cnum='" + cnum + '\'' +
                ", ctime=" + ctime +
                ", cstartTime=" + cstartTime +
                ", cebdTime=" + cendTime +
                ", ctotalMoney=" + ctotalMoney +
                ", house=" + house +
                ", lessee=" + lessee +
                '}';
    }
}
